<?php
/**
 * Created by PhpStorm.
 * User: tonyK
 * Date: 2019/1/21 0021
 * Time: 17:59
 */

namespace app\api\validate;


class LogoValidate extends BaseValidate
{
    protected $rule=[
        'title' =>'require',
        'id'=>'require|isPositiveInteger'
    ];

    protected $message=[
        'title.require' => '标题不能为空',
        'id.require' => '参数不能为空',
    ];
    protected $scene =[
        'addLogo' =>['title'],
        'dellogo' =>['id']
    ];
}